#include<bits/stdc++.h>
using namespace std;
int a[200005];
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n,num;
    cin>>n;
    num=n;
    for(int i=1;i<=n;i++)cin>>a[i];
    sort(a+1,a+n+1);
    int left=1,right=1;
    while(a[left]==a[right])right++;
    while(right<=n){
        if(a[left]<a[right]){
            num--;
            left++;
            right++;
        }
        else right++;
    }
    cout<<num;
    return 0;
}
